package com.tanhua.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.FreezeDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FreezeDetailMapper extends BaseMapper<FreezeDetail> {
    @Select("SELECT * FROM tb_freeze_detail WHERE user_id = #{userId} ORDER BY created DESC LIMIT 1 ;")
    FreezeDetail selectLatest(Long userId);
}
